import request from '@/utils/request'

// 查询采购进仓分配列表
export function listAllocatedetail(query) {
  return request({
    url: '/productAllocation/allocatedetail/list',
    method: 'get',
    params: query
  })
}

// 查询采购进仓分配详细
export function getAllocatedetail(id) {
  return request({
    url: '/productAllocation/allocatedetail/' + id,
    method: 'get'
  })
}

// 新增采购进仓分配
export function addAllocatedetail(data) {
  return request({
    url: '/productAllocation/allocatedetail',
    method: 'post',
    data: data
  })
}

// 修改采购进仓分配
export function updateAllocatedetail(data) {
  return request({
    url: '/productAllocation/allocatedetail',
    method: 'put',
    data: data
  })
}

// 删除采购进仓分配
export function delAllocatedetail(id) {
  return request({
    url: '/productAllocation/allocatedetail/' + id,
    method: 'delete'
  })
}
